#include "PollServer.hpp"
#include <memory>

int main(int argc, char* argv[])
{
    if(argc != 2)
    {
        std::cout << "Usage:\n\t" << argv[0] << " port"<< std::endl;
        return 1;
    }
    uint16_t serverport = std::stoi(argv[1]);
    std::shared_ptr<PollServer> pollSvr = std::make_shared<PollServer>(serverport);
    pollSvr->InitServer();
    pollSvr->Loop();
    return 0;
}